{"ast":null,"code":"import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genRateStarStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-star`]: {\n      position: 'relative',\n      display: 'inline-block',\n      color: 'inherit',\n      cursor: 'pointer',\n      '&:not(:last-child)': {\n        marginInlineEnd: token.marginXS\n      },\n      '> div': {\n        transition: `all ${token.motionDurationMid}, outline 0s`,\n        '&:hover': {\n          transform: token.rateStarHoverScale\n        },\n        '&:focus': {\n          outline: 0\n        },\n        '&:focus-visible': {\n          outline: `${token.lineWidth}px dashed ${token.rateStarColor}`,\n          transform: token.rateStarHoverScale\n        }\n      },\n      '&-first, &-second': {\n        color: token.defaultColor,\n        transition: `all ${token.motionDurationMid}`,\n        userSelect: 'none',\n        [token.iconCls]: {\n          verticalAlign: 'middle'\n        }\n      },\n      '&-first': {\n        position: 'absolute',\n        top: 0,\n        insetInlineStart: 0,\n        width: '50%',\n        height: '100%',\n        overflow: 'hidden',\n        opacity: 0\n      },\n      [`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {\n        opacity: 1\n      },\n      [`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {\n        color: 'inherit'\n      }\n    }\n  };\n};\nconst genRateRtlStyle = token => ({\n  [`&-rtl${token.componentCls}`]: {\n    direction: 'rtl'\n  }\n});\nconst genRateStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      display: 'inline-block',\n      margin: 0,\n      padding: 0,\n      color: token.rateStarColor,\n      fontSize: token.rateStarSize,\n      lineHeight: 'unset',\n      listStyle: 'none',\n      outline: 'none',\n      // disable styles\n      [`&-disabled${componentCls} ${componentCls}-star`]: {\n        cursor: 'default',\n        '&:hover': {\n          transform: 'scale(1)'\n        }\n      }\n    }), genRateStarStyle(token)), {\n      // text styles\n      [`+ ${componentCls}-text`]: {\n        display: 'inline-block',\n        marginInlineStart: token.marginXS,\n        fontSize: token.fontSize\n      }\n    }), genRateRtlStyle(token))\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Rate', token => {\n  const {\n    colorFillContent\n  } = token;\n  const rateToken = mergeToken(token, {\n    rateStarColor: token['yellow-6'],\n    rateStarSize: token.controlHeightLG * 0.5,\n    rateStarHoverScale: 'scale(1.1)',\n    defaultColor: colorFillContent\n  });\n  return [genRateStyle(rateToken)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","genRateStarStyle","token","componentCls","position","display","color","cursor","marginInlineEnd","marginXS","transition","motionDurationMid","transform","rateStarHoverScale","outline","lineWidth","rateStarColor","defaultColor","userSelect","iconCls","verticalAlign","top","insetInlineStart","width","height","overflow","opacity","genRateRtlStyle","direction","genRateStyle","Object","assign","margin","padding","fontSize","rateStarSize","lineHeight","listStyle","marginInlineStart","colorFillContent","rateToken","controlHeightLG"],"sources":["/data/messenger.client/node_modules/antd/es/rate/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genRateStarStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [`${componentCls}-star`]: {\n      position: 'relative',\n      display: 'inline-block',\n      color: 'inherit',\n      cursor: 'pointer',\n      '&:not(:last-child)': {\n        marginInlineEnd: token.marginXS\n      },\n      '> div': {\n        transition: `all ${token.motionDurationMid}, outline 0s`,\n        '&:hover': {\n          transform: token.rateStarHoverScale\n        },\n        '&:focus': {\n          outline: 0\n        },\n        '&:focus-visible': {\n          outline: `${token.lineWidth}px dashed ${token.rateStarColor}`,\n          transform: token.rateStarHoverScale\n        }\n      },\n      '&-first, &-second': {\n        color: token.defaultColor,\n        transition: `all ${token.motionDurationMid}`,\n        userSelect: 'none',\n        [token.iconCls]: {\n          verticalAlign: 'middle'\n        }\n      },\n      '&-first': {\n        position: 'absolute',\n        top: 0,\n        insetInlineStart: 0,\n        width: '50%',\n        height: '100%',\n        overflow: 'hidden',\n        opacity: 0\n      },\n      [`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {\n        opacity: 1\n      },\n      [`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {\n        color: 'inherit'\n      }\n    }\n  };\n};\nconst genRateRtlStyle = token => ({\n  [`&-rtl${token.componentCls}`]: {\n    direction: 'rtl'\n  }\n});\nconst genRateStyle = token => {\n  const {\n    componentCls\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      display: 'inline-block',\n      margin: 0,\n      padding: 0,\n      color: token.rateStarColor,\n      fontSize: token.rateStarSize,\n      lineHeight: 'unset',\n      listStyle: 'none',\n      outline: 'none',\n      // disable styles\n      [`&-disabled${componentCls} ${componentCls}-star`]: {\n        cursor: 'default',\n        '&:hover': {\n          transform: 'scale(1)'\n        }\n      }\n    }), genRateStarStyle(token)), {\n      // text styles\n      [`+ ${componentCls}-text`]: {\n        display: 'inline-block',\n        marginInlineStart: token.marginXS,\n        fontSize: token.fontSize\n      }\n    }), genRateRtlStyle(token))\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Rate', token => {\n  const {\n    colorFillContent\n  } = token;\n  const rateToken = mergeToken(token, {\n    rateStarColor: token['yellow-6'],\n    rateStarSize: token.controlHeightLG * 0.5,\n    rateStarHoverScale: 'scale(1.1)',\n    defaultColor: colorFillContent\n  });\n  return [genRateStyle(rateToken)];\n});"],"mappings":"AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,QAAQ,aAAa;AAC5C,MAAMC,gBAAgB,GAAGC,KAAK,IAAI;EAChC,MAAM;IACJC;EACF,CAAC,GAAGD,KAAK;EACT,OAAO;IACL,CAAE,GAAEC,YAAa,OAAM,GAAG;MACxBC,QAAQ,EAAE,UAAU;MACpBC,OAAO,EAAE,cAAc;MACvBC,KAAK,EAAE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